home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / sa85d.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.6 KB  |  43 lines

  1. /* Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: sa85d.h,v 1.2.2.1 2000/11/02 15:05:08 igorm Exp $ */
  20. /* ASCII85Decode filter interface */
  21. /* Requires scommon.h; strimpl.h if any templates are referenced */
  22.  
  23. #ifndef sa85d_INCLUDED
  24. #  define sa85d_INCLUDED
  25.  
  26. /* ASCII85Decode */
  27. typedef struct stream_A85D_state_s {
  28.     stream_state_common;
  29.     int odd;            /* # of odd digits */
  30.     ulong word;            /* word being accumulated */
  31. } stream_A85D_state;
  32.  
  33. #define private_st_A85D_state()    /* in sfilter2.c */\
  34.   gs_private_st_simple(st_A85D_state, stream_A85D_state,\
  35.     "ASCII85Decode state")
  36. /* We define the initialization procedure here, so that the scanner */
  37. /* can avoid a procedure call. */
  38. #define s_A85D_init_inline(ss)\
  39.   ((ss)->min_left = 1, (ss)->word = 0, (ss)->odd = 0)
  40. extern const stream_template s_A85D_template;
  41.  
  42. #endif /* sa85d_INCLUDED */
  43.